package com.gton.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (GpLogin)表实体类
 *
 * @author 郭童
 * @since 2023-07-07 15:26:34
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "GpLogin", description = "EasyCode")
public class GpLogin implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键，采用雪花算法")
    private Long id;

    @TableField(value = "username")
    @ApiModelProperty("用户登录名")
    private String username;

    @TableField(value = "password")
    @ApiModelProperty("用户登录密码（加密）")
    private String password;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(value = "welcome_name")
    @ApiModelProperty("欢迎名字（真实名字）")
    private String welcomeName;

    @TableField(value = "is_del")
    @ApiModelProperty("逻辑删除（0-标识删除,1-标识可用）")
    private Integer isDel;

}

